import { IRouteComponentProps } from 'umi'
import Management from './management'
// import View from "../pages/login/login"

const Layout: React.FC<IRouteComponentProps> = (props) => {
    let cont = props.children
    if (props.location.pathname === '/login/login') {
        // cont = <View>{props.children}</View>
    } else {
        cont = <Management>{props.children}</Management>
    }

    return <div>
        {cont}
    </div>
}
export default Layout;